<style>
.createInfo
{
    margin-left:6px;
}

.createInfo .time
{
    margin-left:6px;
}

</style>
<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/storageLocationType/saveStorageLocationType"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent" 
             >
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id"
                value="<#if (storageLocationType.storageLocationTypeCode)??>${storageLocationType.storageLocationTypeCode!''}</#if>">
            <fieldset>
                <dl class="nowrap">
                    <dt><@label key="storageLocationTypeCode.C,colon">库位类型编号：</@label></dt>
                    <dd>
                        <input name="storageLocationTypeCode" class="required  alphanumeric toUp" value="<#if (storageLocationType.storageLocationTypeCode)??>${storageLocationType.storageLocationTypeCode!''}</#if>" 
                              size="8" type="text" maxlength="20" class="required"  warn="<@label key="storageLocationTypeCode.C,alreadyExists">库位类型编码已存在</@label>"
                              <#if pattern!="add">
                              readonly="readonly"
                              <#else>
                            remote="${rc.getContextPath()}/manage/storageLocationType/validateStorageLocationTypeCode"
                             </#if>
                        />
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt><@label key="storageLocationTypeText.C,colon">库位类型描述：</@label></dt>
                    <dd>
                        <input name="storageLocationTypeText"
                            value="<#if (storageLocationType.storageLocationTypeText)??>${storageLocationType.storageLocationTypeText!''}</#if>"
                            size="22" type="text" maxlength="60" class="required" 
                            <#if "read"==pattern>
                              readonly="readonly"
                            </#if>
                          />
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt>&nbsp;</dt>
                    <dd>
                        <label><input type="checkbox" name="lockFlag" value="1"
                            <#if "read"==pattern>
                            disabled="disabled"
                            </#if>
                            <#if
                            (storageLocationType.lockFlag)?? && (storageLocationType.lockFlag == 1)>
                            checked="true"</#if>><@label key="lock.C">锁定</@label></label>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if storageLocationType??>
            <#assign createInfo=storageLocationType>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                <#if pattern!="read">
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="save.B">保存</@label></button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="buttonActiveGrey">
                            <div class="buttonContent">
                                    <button type="button" class="close"><@label key="cancel.B">取消</@label></button>
                            </div>
                        </div>
                    </li>
                <#else>
                    <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                                <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
                </#if>
            </ul>
        </div>
    </form>
</div>

